﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminMaster.Master" Inherits="System.Web.Mvc.ViewPage<VietThuongLMS.GhiChu>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftAjax.js") %>"></script>
    <script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftMvcValidation.js") %>"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script>
    <script type="text/javascript" src="<%: Url.Content("~/Plugins/ckeditor/ckeditor.js") %>"></script>

    <legend>
        Cập Nhật Thông Tin Ghi Chú
    </legend>
    
    <%using (Html.BeginForm("Edit", "GhiChu", new { area = "Admin", @maNhanVien = Model.MaNhanVien }, FormMethod.Post, new { @class = "form-horizontal", @id = "formNew", @name = "formNew", enctype = "multipart/form-data" }))
      {%>
        <%: Html.ValidationSummary(true)%>
        
            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Tiêu Đề:</label>
                <div class="controls">
                    <%: Html.TextBoxFor(t => t.TieuDe)%>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="strFrom">
                    Nội dung</label>
                <div class="controls">
                    <%: Html.TextAreaFor(t => t.NoiDung, new { @class = "ckeditor", placeholder = "Nội dung..." })%>
                    <%: Html.ValidationMessageFor(m => m.NoiDung)%>
                </div>
            </div>

            <div class="control-group">
                <div class="controls">
                    <button id="btnUpdate" name="btnUpdate" type="submit" class="btn btn-primary"><i class="icon-refresh icon-white"></i>Cập Nhật</button>
                </div>
            </div>

    <% } %>

    <div>
        <a href="<%=ResolveUrl("~/Admin/GhiChu/Index/?maNhanVien=")%><%=Model.MaNhanVien %>">
        <button class="btn btn-primary">
        <i class="icon-reply"></i> 
            Quay lại danh sách
        </button></a>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>

